﻿using System;

namespace XuanFe.Database.Model
{
    /// <summary>
    /// 订单表
    /// </summary>
    public class BookingModel : BaseModel
    {
        /// <summary>
        /// 订单号，YYYYMMDDXXXXXXXX
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        public string CustomerId { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string CustomerName { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string MobileNumber { get; set; }
        /// <summary>
        /// 固定电话
        /// </summary>
        public string Telephone { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string EMail { get; set; }
        /// <summary>
        /// 预订时间
        /// </summary>
        public DateTime BookingTime { get; set; }
        /// <summary>
        /// 预订渠道，LOC表示现场预订，TEL表示电话预订，WEB表示网上预订
        /// </summary>
        public string BookingType { get; set; }
        /// <summary>
        /// 订单状态，0：新建；10：未支付出票中；11：已支付出票中；20：待支付已出票；21：已支付已出票；30：已退票；31：部分退票；99：已取消
        /// </summary>
        public int BookingStatus { get; set; }
        /// <summary>
        /// 已出票标识
        /// </summary>
        public bool Printed { get; set; }
        /// <summary>
        /// 已支付标识
        /// </summary>
        public bool Paid { get; set; }
        /// <summary>
        /// 销售票价，报价
        /// </summary>
        public decimal TotalAmount { get; set; }
        /// <summary>
        /// 基础票价，底价
        /// </summary>
        public decimal TotalBase { get; set; }
        /// <summary>
        /// 已收票价
        /// </summary>
        public decimal TotalPaid { get; set; }
        /// <summary>
        /// 报销标识
        /// </summary>
        public bool Claim { get; set; }
        /// <summary>
        /// 送票地址
        /// </summary>
        public string ContactAddress { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 销售员工编码
        /// </summary>
        public string SaleStaffId { get; set; }
        /// <summary>
        /// 销售员工姓名
        /// </summary>
        public string SaleStaffName { get; set; }
        /// <summary>
        /// 销售时间
        /// </summary>
        public DateTime SaleTime { get; set; }
        /// <summary>
        /// 出票员工编码
        /// </summary>
        public string PrintStaffId { get; set; }
        /// <summary>
        /// 出票员姓名
        /// </summary>
        public string PrintStaffName { get; set; }
        /// <summary>
        /// 出票时间
        /// </summary>
        public DateTime? PrintTime { get; set; }
        /// <summary>
        /// 收款员工编码
        /// </summary>
        public string CollectionStaffId { get; set; }
        /// <summary>
        /// 收款员工姓名
        /// </summary>
        public string CollectionStaffName { get; set; }
        /// <summary>
        /// 收款时间
        /// </summary>
        public DateTime? CollectionTime { get; set; }
        /// <summary>
        /// 乘机数据
        /// </summary>
        public string Data { get; set; }
        /// <summary>
        /// 出票公司
        /// </summary>
        public string PrintCompany { get; set; }
        /// <summary>
        /// 付款方式
        /// </summary>
        public string PaymentType { get; set; }
    }
}
